package com.huawei.appmarket.service.settings.view.activity;

import android.content.Intent;
import android.os.Bundle;
import com.huawei.appgallery.foundation.ui.framework.activity.BaseActivity;
import com.huawei.appmarket.service.settings.bean.BaseSettingCardBean;
import com.huawei.appmarket.service.settings.view.fragment.SettingsFragment;
import com.huawei.hms.common.data.DataBufferSafeParcelable;
import o.cgv;
import o.der.a;
import o.der.g;
import o.Logger;
import o.ll;

public class BaseSettingsActivity extends BaseActivity {
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(g.ॱˎ);
        ᐝ();
    }

    protected void ᐝ() {
        cgv.ˋ(this, a.ˊ, a.ᐝ);
        ॱ(ॱˊ());
        ͺ();
    }

    protected String ॱˊ() {
        return null;
    }

    protected void ͺ() {
    }

    public void onActivityResult(int i, int i2, Intent intent) {
        if (Logger.ˎ()) {
            Logger.ˏ("BaseSettingsActivity", "onActivityResult,requestCode=" + i + ",resultCode=" + i2 + "data=" + intent);
        }
        super.onActivityResult(i, i2, intent);
        ˏ(i, i2, intent);
    }

    protected void ᐝॱ() {
        ll.ˏ(this).ˋ(new Intent(SettingsFragment.ˋ));
    }

    protected void ˏ(int i, int i2, Intent intent) {
        BaseSettingCardBean baseSettingCardBean = new BaseSettingCardBean();
        baseSettingCardBean.ʽ(i);
        baseSettingCardBean.ʼ(i2);
        baseSettingCardBean.ˎ(intent);
        ˏ(baseSettingCardBean);
    }

    protected void ˏ(BaseSettingCardBean baseSettingCardBean) {
        Intent intent = new Intent(SettingsFragment.ˊ);
        if (baseSettingCardBean != null) {
            intent.putExtra("requestCode", baseSettingCardBean.ꜞ());
            intent.putExtra("resultCode", baseSettingCardBean.ㆍ());
            intent.putExtra(DataBufferSafeParcelable.DATA_FIELD, baseSettingCardBean.ꓸ());
        }
        ll.ˏ(this).ˋ(intent);
    }
}
